//
//  WBStatusToolBar.swift
//  Weibo
//
//  Created by cc on 10/21/17.
//  Copyright © 2017 cc. All rights reserved.
//

import UIKit

class WBStatusToolBar: UIView {

    
    var viewModel: WBStatusViewModel? {
        didSet{
//            retweetedButton.setTitle("\(String(describing: viewModel?.status.reposts_count))", for: [])
//            commentButton.setTitle("\(String(describing: viewModel?.status.comments_count))", for: [])
//            likeButton.setTitle("\(String(describing: viewModel?.status.attitudes_count))", for: [])
            
            retweetedButton.setTitle(viewModel?.retweetedStr, for: [])
            commentButton.setTitle(viewModel?.commentStr, for: [])
            likeButton.setTitle(viewModel?.likeStr, for: [])
        }
    }
    
    
    /// 转发
    @IBOutlet weak var retweetedButton: UIButton!
    
    /// 评论
    @IBOutlet weak var commentButton: UIButton!
    
    /// 赞
    @IBOutlet weak var likeButton: UIButton!
}
